/* bbs_common.h : bbs common define
 * CopyRight (C) 2008 dgnbbs
 * drangon_zhou@21cn.com
 * 2008-10
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef INCLUDED_BBS_COMMON_H
#define INCLUDED_BBS_COMMON_H

#include "osutil.h"

BEGIN_EXTERN_C_DECL
//////////////////////////////

/* <1> bbs limits */
/* some len limits */
#define BBS_STRLEN		80
#define BBS_NAMELEN		40
#define BBS_IDLEN		12
#define BBS_PASSLEN		40

#define BBS_BMLEN		60


/* some num limits */
/* TODO : move some value to config file */
#define BBS_MAXUSER	    250000
#define BBS_MAXACTIVE    25000
#define BBS_MAXBOARD      1024

#define BBS_MAX_TOPPOST      3

#define BBS_MAXFRIENDS	   400
#define BBS_MAXREJECTS      32


//////////////////////////////
END_EXTERN_C_DECL

#endif /* INCLUDED_BBS_COMMON_H */

